package com.jianbing.shasha.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jianbing.common.annotation.Excel;

import java.util.Date;

public class ShashaAccuracyVo {

    @Excel(name = "用户Id")
    private Long userId;
    @Excel(name = "正确率")
    private Double accuracy;
    @Excel(name = "题目类型")
    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "答题日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date doTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    public Double getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(Double accuracy) {
        this.accuracy = accuracy;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getDoTime() {
        return doTime;
    }

    public void setDoTime(Date doTime) {
        this.doTime = doTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "ShashaAccuracyVo{" +
                "userId=" + userId +
                ", accuracy=" + accuracy +
                ", type='" + type + '\'' +
                ", doTime=" + doTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
